import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:getx/common/routers/names.dart';
import 'package:getx/pages/home/view.dart';
import 'package:getx/pages/main/view.dart';
import 'package:getx/pages/mine/view.dart';
import 'package:getx/pages/order/view.dart';
import 'package:getx/pages/order_detail/view.dart';

class RoutePages {
  // 列表
  static List<GetPage> list = [
    GetPage(
      name: RouteNames.home,
      page: () => const HomePage(),
    ),
    GetPage(
      name: RouteNames.main,
      page: () => const MainPage(),
    ),
    GetPage(
      name: RouteNames.mine,
      page: () => const MinePage(),
    ),
    GetPage(
      name: RouteNames.order,
      page: () => const OrderPage(),
      children: [
        GetPage(
          name: RouteNames.orderDetail,
          page: () => const OrderDetailPage(),
        ),
      ],
    ),
  ];
}
